﻿@{
    ViewBag.Title = "回复留言";
}
@model DTcms.Model.plugin_feedback
<form id="form1" class="layui-form" url="FeedbackSave?action=@ViewBag.action&id=@ViewBag.id">
    @Html.AntiForgeryToken()
    <!--导航栏-->
    <div class="pageheader">
        <div class="page-bar">
            <ul class="page-breadcrumb">
                <li><a href="javascript:history.back(-1);" class="back"><i class="fa fa-mail-reply-all"></i> 返回上一页</a></li>
                <li><a href="javascript:;"><i class="iconfont icon-home1"></i> 首页</a> </li>
                <li><a href="javascript:;">插件管理</a> </li>
                <li><a href="javascript:;">广告橱窗</a> </li>
                <li><a href="../feedback/feedback_list">在线留言</a> </li>
                <li><a href="javascript:;">回复留言</a> </li>
            </ul>
        </div>
    </div>
    <!--/导航栏-->
    <!--内容-->
    <div class="layui-fluid">
        <div class="layui-tab layui-tab-card">
            <ul class="layui-tab-title" id="floatHead">
                <li class="layui-this">查看留言</li>
            </ul>
            <div class="layui-tab-content">
                <div class="layui-tab-item layui-show">
                    <div class="layui-form-item">
                        <label class="layui-form-label">所属站点</label>
                        <div class="layui-input-block">@(new DTcms.BLL.sites().GetTitle(Model.site_id))</div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">类型</label>
                        <div class="layui-input-block">@(Model.type == 1 ? "建议" : "投诉")</div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">联系人</label>
                        <div class="layui-input-block">@Model.user_name</div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">联系电话</label>
                        <div class="layui-input-block">@Model.user_tel</div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">联系QQ</label>
                        <div class="layui-input-block">@Model.user_qq</div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">电子邮箱</label>
                        <div class="layui-input-block">@Model.user_email</div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">留言时间</label>
                        <div class="layui-input-block">@Model.add_time</div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">城市</label>
                        <div class="layui-input-block">@Model.city</div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">留言标题</label>
                        <div class="layui-input-block">@Model.title</div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">留言内容</label>
                        <div class="layui-input-block">@Html.Raw(Model.content)</div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">回复留言</label>
                        <div class="layui-input-block">
                            @Html.TextArea("content", Model.reply_content, new { datatype = "*", sucmsg = " ", @class = "input" })
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!--/内容-->
    <!--工具栏-->
    <div class="page-footer">
        <div class="btn-wrap">
            <button class="layui-btn icon-btn" id="btnSubmit"><i class="layui-icon layui-icon-ok"></i>提交保存</button>
            <button class="layui-btn layui-btn-warm icon-btn" name="btnReturn" onclick="javascript:history.back(-1);"><i class="layui-icon layui-icon-return"></i>返回上一页</button>
        </div>
    </div>
    <!--/工具栏-->
</form>
@section Scripts{
    <script type="text/javascript">
        layui.use(['validform', 'element', 'jqueryform'], function () {
            //初始化表单验证
            $("#form1").initValidform('#btnSubmit', 1);
        });
    </script>
}